HTML5: 20 Lessons to Successful Web Development by Nixon Robin
Author:Nixon, Robin [Nixon, Robin]
Language: eng
Format: mobi, azw3, epub
Publisher: McGraw-Hill Education
Published: 2015-01-27T08:00:00+00:00
The textAlign Property
But there’s more to writing text to a canvas than that because there are three properties you can pass values to that will further customize the way text appears. For example, using the textAlign property, you can specify the alignment of the text out of the values start, end, left, right, and center. So, to center some text, you could set the property like this:
As you may have noticed, in order to properly center the text, the call to strokeText() needed its horizontal offset changed from 20 in the previous example to 205, because that is half the width of the canvas (which is 410 pixels wide), and the result is shown in Figure 11-2.
Download
HTML5: 20 Lessons to Successful Web Development by Nixon Robin.azw3
HTML5: 20 Lessons to Successful Web Development by Nixon Robin.epub
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(14999)
The Mikado Method by Ola Ellnestam Daniel Brolund(12258)
Hello! Python by Anthony Briggs(12152)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(11529)
Dependency Injection in .NET by Mark Seemann(11313)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10528)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(10128)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(9781)
Grails in Action by Glen Smith Peter Ledbrook(9455)
Hit Refresh by Satya Nadella(9039)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(9007)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(9003)
The Kubernetes Operator Framework Book by Michael Dame(8473)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(8424)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8298)
Robo-Advisor with Python by Aki Ranin(8248)
Practical Computer Architecture with Python and ARM by Alan Clements(8224)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(8193)
Building Low Latency Applications with C++ by Sourav Ghosh(8098)